
/*
 * EntryView.fx
 *
 * Created on Mar 11, 2010, 9:35:57 PM
 */

package GraphsWindowPackage;




import javafx.scene.layout.HBox;
import AlertSystem.Window;
import javafx.scene.layout.LayoutInfo;
import javafx.scene.text.Text;
import javafx.scene.Node;

/**
 * @author quang
 */



public class EntryView extends Window {
//    public var name: String = "";
    public var startShownTime: Number = 0;
    public var endShownTime: Number = 0;
    public var numPixPerTimeUnit: Number = 0;   //number of pixels per one time unit (day)
    public var shown: Boolean = true;   //show entry by default
    public var entry: Entry = null;

    ///////////////////////////////////////////////////    
    
    protected def nameField = HBox {
        layoutInfo: LayoutInfo {
            width: nameWidth
        }
        content: Text {
            content: "{entry.name}\n"
            wrappingWidth: nameWidth
        }
    }

    public function isNull(): Boolean {
        if (this.nameField == null) return true
        else return false
    }

    public override function create(): Node {
        return null;
    }
}
